<template>
  <div>
    login
    <button @click="handleLogin">Login</button>
    token: {{ token }}
    <a-button type="danger">Primary</a-button>
  </div>
</template>

<script lang="ts" setup>
import { ref, defineComponent } from 'vue'
// import { useRouter } from 'vue-router'
import { useUserStore } from '@/store/modules/user'

const { setToken, getToken } = useUserStore()
setToken('哈哈哈哈')
const token = ref(getToken)
const handleLogin = () => {
  console.log(111)
  // $router.push('/')
}
</script>
